<?php
namespace App\Transformers;

use League\Fractal\TransformerAbstract;
use App\Model\UserShipment;

class UserShipmentTransformer extends TransformerAbstract{

    public function transform(UserShipment $item){
        return [
            'id' => $item->id,
            'contact_mobile' => $item->contact_mobile,
            'contact_person' => $item->contact_person,
            'area' => $item->area,
            'address' =>$item->address
        ];
    }
}